<script setup lang="ts">
// 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync()
</script>

<template>
  <!--  -->
  <view
    class="page"
    :style="{ paddingTop: safeAreaInsets!.top + 'px' ,paddingBottom: safeAreaInsets!.bottom + 'px'}"
  >
    <iframe
      class="web-view"
      src="http://jdwx.tpri.org.cn/static/index.html?platform=android&serverId=34"
    ></iframe>
  </view>
</template>

<style lang="scss">
.page {
  height: 100%;
  display: flex;
  flex-direction: column;

  .web-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: none;
  }
}
</style>
